import request from '@/utils/request'

// 查询数字人音色列表
export function listSysVoice(query) {
  return request({
    url: '/system/SysVoice/list',
    method: 'get',
    params: query
  })
}

// 查询数字人音色详细
export function getSysVoice(id) {
  return request({
    url: '/system/SysVoice/' + id,
    method: 'get'
  })
}

// 新增数字人音色
export function addSysVoice(data) {
  return request({
    url: '/system/SysVoice',
    method: 'post',
    data: data
  })
}

// 修改数字人音色
export function updateSysVoice(data) {
  return request({
    url: '/system/SysVoice',
    method: 'put',
    data: data
  })
}

// 删除数字人音色
export function delSysVoice(id) {
  return request({
    url: '/system/SysVoice/' + id,
    method: 'delete'
  })
}
export function recommend() {
  return request({
    url: '/system/SysVoice/recommend',
    method: 'post'
  })
}
